package com.atguigu.gmall.list.client.impl;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.common.result.ResultCodeEnum;
import com.atguigu.gmall.list.client.ListFeignClient;
import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.stereotype.Component;

/**
 * @Author BrookPeng
 * @Date 2020/11/26 16:41
 * @Version 1.0
 */
@Component
public class ListFeignClientImpl implements ListFeignClient {

    @Override
    public Result hotScore(Long skuId) {

        // 降级处理代码实现 远程调用
        return Result.build(null, ResultCodeEnum.FAIL);
    }

    @Override
    public SearchResponseVo search(SearchParam searchParam) {

        // 降级处理代码实现 远程调用
        return null;
    }
}
